package com.testmanager.testmananger.ArithMetic;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.io.*;

public class StringToBean {



    public static void main(String[] args) throws IOException {
        File file = new File("/Users/hesencun/Desktop/idea/testManagerServerSpring/src/test/java/com/testmanager/testmananger/ArithMetic/scripts.myjson");
        InputStream inputStream =new FileInputStream(file);
        int available = inputStream.available();
        byte[] bytes  = new byte[available];
        inputStream.read(bytes);
        String text = new String(bytes);
       // System.out.println(text);

       // JSONObject jsonObject = JSONArray.parseObject(text);
        JSONArray objects = JSONArray.parseArray(text);
        System.out.println(objects);
    }


}
